import 'package:flutter/material.dart';

class CustomButton extends StatelessWidget{
  final String label;
  CustomButton(this.label);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new RaisedButton(onPressed: (){},child: new Text(label),);
  }

}

class CustomViewTest extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Column(
      children: <Widget>[
        Text("我是文本"),
        RaisedButton(child: new Text("原生按钮"),onPressed: (){

        },),
        CustomButton("自定义按钮"),
      ],
    );
  }

}